//
//  BaseCollectionView.m
//  Tour
//
//  Created by 张张烨 on 16/3/19.
//  Copyright © 2016年 张中烨. All rights reserved.
//

#import "BaseCollectionView.h"

@implementation BaseCollectionView
//
//- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(nonnull UICollectionViewLayout *)layout
//{
//    self = [super initWithFrame:frame collectionViewLayout:layout];
//    if (self) {
//        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
//            self.backgroundColor = COLOR_NIGHT;
//        } else {
//            self.backgroundColor = COLOR_DAY;
//        }
//    }
//    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeColor:) name:@"changeColor1" object:nil];
//    return self;
//}
//
//- (void)changeColor:(NSNotification *)notification{
//    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
//        self.backgroundColor = COLOR_NIGHT;
//    } else {
//        self.backgroundColor = COLOR_DAY;
//    }
//}
//
//- (void)dealloc
//{
//    [[NSNotificationCenter defaultCenter] removeObserver:self name:@"changeColor1" object:nil];
//
//}


@end
